import { mockPrefix } from '@/config/settings'
import Mock from 'mockjs'

const dict = Mock.mock({
  'ZJLX_DM|6': [
    {
      'dictNameCn|+1': ['身份证', '营业执照', '军官证', '社会统一信用代码', '户口簿', '港澳台身份证'],
      'dictCode|+1': ['1', '2', '3', '4', '5', '6'],
      isValid: 1,
      dictType: 'ZJLX_DM'
    }
  ],
  'GYFS_DM|2': [
    {
      'dictNameCn|+1': ['共同共有', '单独共有'],
      'dictCode|+1': ['1', '2'],
      isValid: 1,
      dictType: 'GYFS_DM'
    }
  ]
})

Mock.mock(mockPrefix + '/dict/init', 'get', () => {
  const data: any = dict
  return {
    code: 200,
    data,
    msg: '初始化字典成功'
  }
})
